package cn.gjculture.shopping.api.dao;

import cn.gjculture.shopping.api.entity.Insurance;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface InsuranceDao {

    @Insert("insert into insurance(insuranceId,national,province,city,insuranceCompany,insuranceType,thirdPartyLiability,phone," +
            "wxNumber,iDCardPic,drivingLicensePic,insertTime,updateTime) " +
            "values(#{insuranceId},#{national},#{province},#{city},#{insuranceCompany},#{insuranceType},#{thirdPartyLiability}," +
            "#{phone},#{wxNumber},#{iDCardPic},#{drivingLicensePic},#{insertTime},#{updateTime})")
    int insert(Insurance insurance);
    @Select("select * from insurance")
    List<Insurance> query();
}
